home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 1
/
Nebula One.iso
/
Utilities
/
Converters
/
Convert_PICT
/
Testing
/
hex_tests
/
pat=set1=rgb.hex
< prev
next >
Wrap
Text File
|
1995-06-12
|
3KB
|
68 lines
% header
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
% end of app-specific header
00FF 0000 0000 00FF 00FF % pict size (bogus) and top left bottom right
0011 02FF % verson
0001 000A 0000 0000 00FF 00FF % Clip region. Added to keep Mac tester happy.
0030 0000 0000 00FF 00FF % draw bounding rect
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% This test set seeks to demonstrate that the primary object
% manipulations (filling, painting, erasing, framing) work as
% they should with patterns. It doesn't test all opcodes. Merely
% a representative subset.
% This test confirms that it works properly with rgb (type 2) pnpxpatterns
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% PnPix Background pattern
0012
0002 % Type
0102 0408 1020 4080 % pattern
F0F0 0000 0000 % slightly off red
% PnPix Pen pattern
0013
0002 % Type
0102 0408 1020 4080 % pattern
0000 8080 0000 % half green
% PnPix Fill pattern
0014
0002 % Type
0102 0408 1020 4080 % pattern
FFFF 0000 8888 % Red with a middling of blue (purpleish?)
000B 0010 0010 % roundrect oval size
% draw lines along its four sides
0020 0010 0000 0010 00FF
0020 0000 0010 00FF 0010
0020 0050 0000 0050 00FF
0020 0000 0050 00FF 0050
0020 0000 0080 00FF 0080
0020 0000 00C0 00FF 00C0
0020 0080 0000 0080 00FF
0020 00C0 0000 00C0 00FF
% Frame a rectangle
0030 0010 0010 0050 0050
% paint an adjacent roundrect
0041 0010 0080 0050 00C0
% try to invert part of the last rectangle with an arc
0063 0010 0080 0050 00C0 0010 00A0
% fill an oval below that one
0054 0080 0080 00C0 00C0
% erase an arc
0062 0080 0010 00C0 0050 0010 00A0
00FF % end